<!--title-->
<div class="mnav1">
	<div class="m_nav">
		<div class="nav_left">
			<em class="home_icon"><?=$this->sys_name?></em><span>&nbsp;&gt;&nbsp;</span><font><?=$this->title?></font>
		</div>
	</div>
</div>

<div class="content-table">
    <form action="/maozhua/app-ics" name="form1" method="GET">
        登录日期：
        <input type="text" name="date_start" id="date_start" value="<?=$this->date_start;?>" autocomplete="off" style="width: 100px"> ~ <input type="text" name="date_end" value="<?=$this->date_end;?>" id="date_end" autocomplete="off" style="width: 100px">
        状态：
        <select name="status">
            <option value="">请选择</option>
            <option value="2" <?php if($this->status==2){echo "selected=selected";}?>>登录成功</option>
            <option value="1" <?php if($this->status==1){echo "selected=selected";}?>>登陆失败</option>
        </select> 
        关键字：<input type="text" name="keyword" <?php if($this->keyword){echo "value='".$this->keyword."'";}?> />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" class="button" value="搜索" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" class="button-cancle" value="清空搜索条件" onclick="location.href='?';" />
    </form>
</div>
<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<br />
<table>
  <tr>
    <th>公司名称</th>
    <th>尝试登录时间</th>
    <th>状态</th>
  </tr>
    <?php $data = $this->data['current_page_info'];?>
    <?php if($data["id"]):?>
        <?php foreach($data["id"] as $id => $something):?>
            <tr>
                <td><?=$data["user_name"][$id]?></td>
                <td><?=$data["loginTime"][$id]?></td>
                <td style="text-align: left; padding-left:10px"><?=$data["msg"][$id]?></td>
            </tr>
        <?php endforeach;?>
    <?php endif;?>

</table>
    <br /><br />
    <div align="right"><?=$this->pagination?></div>
    <br /><br /><br />
<br /><br />
<script>
    var date = new Date();//获取当前时间
    date.setDate(date.getDate()-1);

    $(function() {
        $( "#date_start" ).datepicker({ dateFormat: 'yy-mm-dd'}).datepicker("setDate", "<?=$this->date_start?>");
    });

    $(function() {
        $( "#date_end" ).datepicker({ dateFormat: 'yy-mm-dd'}).datepicker("setDate", "<?=$this->date_end?>");
    });
</script>